///列表
class TsprofitEntity {
	int code;
	TsprofitData data;
	String message;

	TsprofitEntity({this.code, this.data, this.message});

	TsprofitEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new TsprofitData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class TsprofitData {
	List<TsprofitDataRe> res;
	int total;

	TsprofitData({this.res, this.total});

	TsprofitData.fromJson(Map<String, dynamic> json) {
		if (json['res'] != null) {
			res = new List<TsprofitDataRe>();(json['res'] as List).forEach((v) { res.add(new TsprofitDataRe.fromJson(v)); });
		}
		total = json['total'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.res != null) {
      data['res'] =  this.res.map((v) => v.toJson()).toList();
    }
		data['total'] = this.total;
		return data;
	}
}

class TsprofitDataRe {
	String num;
	String createdAt;
	String tel;
	String ordernum;
	String id;
	String fullname;

	TsprofitDataRe({this.num, this.createdAt, this.tel, this.ordernum, this.id, this.fullname});

	TsprofitDataRe.fromJson(Map<String, dynamic> json) {
		num = json['num'];
		createdAt = json['created_at'];
		tel = json['tel'];
		ordernum = json['ordernum'];
		id = json['id'];
		fullname = json['fullname'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['num'] = this.num;
		data['created_at'] = this.createdAt;
		data['tel'] = this.tel;
		data['ordernum'] = this.ordernum;
		data['id'] = this.id;
		data['fullname'] = this.fullname;
		return data;
	}
}
